package com.jzqf.bugly_plugin_example

import androidx.annotation.NonNull
import com.jzqf.bugly_plugin.BuglyPlugin
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine

class MainActivity : FlutterActivity() {
    override fun configureFlutterEngine(@NonNull flutterEngine: FlutterEngine) {
        val registry = flutterEngine.platformViewsController.registry
        flutterEngine.plugins.add(BuglyPlugin())
    }
}
